﻿using System.ComponentModel.DataAnnotations;
using AutoClub.Resources;

namespace AutoClub.Models
{
    /// <summary>
    /// Modelo de negocio para loguear un usuario existente al sistema.
    /// </summary>
    public class LogOnModel
    {
        [Required(AllowEmptyStrings = false, ErrorMessageResourceName = "RequiredFieldError", ErrorMessageResourceType = typeof(PageResources))]
        [DataType(DataType.EmailAddress, ErrorMessageResourceName = "EmailFieldError", ErrorMessageResourceType = typeof(PageResources))]
        [Display(Name = "Email")]
        public string Email { get; set; }

        [Required(AllowEmptyStrings = false, ErrorMessageResourceName = "RequiredFieldError", ErrorMessageResourceType = typeof(PageResources))]
        [DataType(DataType.Password)]
        [Display(Name = "Password")]
        public string Password { get; set; }

        [Display(Name = "Recordarme")]
        public bool RememberMe { get; set; }
    }
}